<template>
  <ant-modal
    modalWidth="908"
    modalHeight="650"
    :visible="open"
    :modal-title="formTitle"
    :adjust-size="true"
    @cancel="cancel"
  >
    <a-form-model ref="form" :model="form" :rules="rules" slot="content" layout="vertical">
      <a-row :gutter="32">
        <a-col :span="12">
          <a-form-model-item label="单据编号" >
            <a-input :disabled="true" v-model="form.measureNumber" placeholder="请输入单据编号"/>
          </a-form-model-item>
        </a-col>
        <a-col :span="12">
          <a-form-model-item label="测量员">
            <select-user
              v-model="form.measurerObj"
              select-model="single" />
          </a-form-model-item>
        </a-col>
        <a-col :span="12">
          <a-form-model-item label="单据日期" prop="measureDate">
            <a-date-picker
              v-model="form.measureDate"
              valueFormat="YYYY-MM-DD"
              :show-today="true"
              placeholder="选择日期"
              style="width: 100%"
            />
          </a-form-model-item>
        </a-col>
        <a-col :span="12">
          <a-form-model-item label="地址" prop="address">
            <a-input v-model="form.address" placeholder="请输入地址"/>
          </a-form-model-item>
        </a-col>
        <a-col :span="12">
          <a-form-model-item label="电话" prop="phone">
            <a-input v-model="form.phone" placeholder="请输入电话"/>
          </a-form-model-item>
        </a-col>
        <a-col :span="12">
          <a-form-model-item label="备注" prop="remark">
            <a-input v-model="form.remark" placeholder="请输入备注"/>
          </a-form-model-item>
        </a-col>
        
        <a-col :lg="24" :md="24" :sm="24">
          <a-form-model-item label="附件">
            <a-upload
              :headers="headers"
              :multiple="true"
              :file-list="fileList"
              list-type="picture-card"
              :customRequest="handleChange"
              :remove='handleRemove'
            >
                上传
            </a-upload>
          </a-form-model-item>
        </a-col>
      </a-row>
    </a-form-model>
    <template slot="footer">
      <a-button :disabled="disabled" @click="cancel">
        取消
      </a-button>
      <a-button type="primary" :disabled="disabled" @click="submitForm(true)">
        保存
      </a-button>
    </template>
  </ant-modal>
</template>
<script>
import BizMeasureAddForm from './BizMeasureForm'
export default {
  ...BizMeasureAddForm
}
</script>
